//
//  BangdingCell.m
//  Fengshui
//
//  Created by are on 13-6-3.
//
//

#import "BangdingCell.h"

@implementation BangdingCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}
-(IBAction)btnAction:(id)sender
{
    UIButton *button = (UIButton *)sender;
    if (button.tag==0) {

        if ([self.typeString isEqualToString:@"phone"]) {

            [self.delegate btnActionOnPhone];
        }
        else if ([self.typeString isEqualToString:@"sina"])
        {
            [self.delegate btnActionOnSina];
        }

    }
    else if(button.tag == 1)
    {
        if ([self.typeString isEqualToString:@"phone"]) {
             
        }
        else if ([self.typeString isEqualToString:@"sina"])
        {
            [self.delegate  btnActionOnSinaJieBang];
        }

    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
